///////////////////////////////////////////////////////////////////////////////
//
// Licensed under the MIT License
//
// Copyright (c) 2010 Chris Colinsky
// All Rights Reserved
//
// version	0.5
// http://code.google.com/p/sugarcookie/
// http://code.google.com/p/sugarcookie/wiki/License
//
////////////////////////////////////////////////////////////////////////////////

package sugarcookie.data.handlers.flex.remoting.events {
	import flash.events.Event;

	public class RemotingServiceResultEvent extends Event {
		private var _remoteDest:String;
		
		public function RemotingServiceResultEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, _d:String=null) {
			super(type, bubbles, cancelable);
			_remoteDest = _d;
		}
		
		override public function clone():Event{
			return new RemotingServiceResultEvent(type, bubbles, cancelable, _remoteDest);
		}
		
		override public function toString():String {
			return formatToString("RemotingServiceResultEvent", "type", "bubbles", "cancelable", "eventPhase", "_remoteDest");
		}
		
		public function get remoteDest():String {
			return _remoteDest;
		}
	}
}




